// 列表展现形式
import { SET_LIST_FORM } from '../constant';

// 默认列表展示
const intiValue = 'icon-grid';

export default function folder (prev = intiValue, action) {
  const {
    type,
    data
  } = action;
  switch (type) {
  case SET_LIST_FORM:
    return data
  default:
    return prev
  }
}
